/*
 * @Author: 灰灰
 * @Date: 2021-12-24 16:10:52
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-01-10 17:01:45
 */

import Layout from '@/layout'

export default [{
    path: '/example',
    component: Layout,
    redirect: '/example/table',
    name: 'Example',
    meta: {
      title: 'Example',
      icon: 'el-icon-s-help'
    },
    children: [{
        path: 'eg',
        name: 'eg',
        component: () => import('@/views/example'),
        meta: {
          title: '例子'
        }
      }, {
        path: 'page',
        name: 'page',
        component: () => import('@/views/example/page'),
        meta: {
          title: '分页'
        }
      }, {
        path: 'page2',
        name: 'page2',
        component: () => import('@/views/example/page2'),
        meta: {
          title: '分页2'
        }
      }, {
        path: 'echart',
        name: 'echart',
        component: () => import('@/views/example/echarts'),
        meta: {
          title: 'Echart'
        }
      }, {
        path: 'table',
        name: 'Table',
        component: () => import('@/views/table/index'),
        meta: {
          title: 'Table',
          icon: 'table'
        }
      },
      {
        path: 'tree',
        name: 'Tree',
        component: () => import('@/views/tree/index'),
        meta: {
          title: 'Tree',
          icon: 'tree'
        }
      }
    ]
  },
  {
    path: '/form',
    component: Layout,
    children: [{
      path: 'index',
      name: 'Form',
      component: () => import('@/views/form/index'),
      meta: {
        title: 'Form',
        icon: 'form'
      }
    }]
  },
  {
    path: 'external-link',
    component: Layout,
    children: [{
      path: 'https://panjiachen.github.io/vue-element-admin-site/#/',
      meta: {
        title: 'External Link',
        icon: 'link'
      }
    }]
  },
]